package com.jsyso.weixin.web;

import com.jsyso.jsyso.util.JsMap;

/**
 * 初始化配置信息
 * @author janjan, xujian_jason@163.com
 *
 */
public class InitParams {

	private static final JsMap config = JsMap.create();
	
	public static void putConfig(String key, JsMap value) {
		InitParams.config.put(key, value);
	}
	
	public static String getConfig(String appid, String key) {
		return InitParams.config.get(appid, JsMap.class).get(key, String.class);
	}
	
	public static JsMap getConfig(String appid) {
		return InitParams.config.get(appid, JsMap.class);
	}
	
}
